There are a number of commands that move the cursor around the current window. If the cursor bumps the top or the bottom of the window the position of the window will be adjusted so as to keep the cursor within the bounds. When the window is moved in response to cursor movements it is moved by about one third of the window size. This improves performance by reducing the number of window moves.
678901234567890123456789012345678901234567890 Ctl-P move-back-line North (up arrow)
678901234567890123456789012345678901234567890 Ctl-N move-forw-line South (down arrow)
These commands move the cursor up one line or down one line. If the cursor is on the top line in the buffer and a `move-back-line' command is given the cursor will jump to the beginning of the first unit in the buffer. If the cursor is on the last line of the buffer and a `move-forw-line' is given the cursor will move to the last unit in the buffer.
678901234567890123456789012345678901234567890 Ctl-F move-forw-char East (right arrow)
678901234567890123456789012345678901234567890 Ctl-B move-back-char West (left arrow)
These commands move the cursor forward or backward in the current line. If the cursor is at the first character in the first unit of the line and the `move-back-char' command is given then the cursor will wrap to the last character of the previous line. If the cursor is at the last character of the last unit in the current line then it will wrap to the first character of the next line.
678901234567890123456789012345678901234567890 Esc F move-forw-unit Ctl-East
678901234567890123456789012345678901234567890 Esc B move-back-unit Ctl-West
These commands are similar to the above set but they move the cursor by units rather than characters. The command `move- forw-unit' will position the cursor to the first character of the next unit. The command `move-back-unit' will move the cursor to the first character of the previous unit.
678901234567890123456789012345678901234567890 Ctl-V move-forw-page PageUp
678901234567890123456789012345678901234567890 Esc V move-back-page PageDown
These commands move the move the data in the window by the number of lines in the window less one. The cursor will stay in the same position relative to the window as the data is moved.
678901234567890123456789012345678901234567890 Esc < move-to-beginning Home
678901234567890123456789012345678901234567890 Esc > move-to-end End
Move the cursor to the beginning or the end of the buffer.
678901234567890123456789012345678901234567890 Ctl-X G move-to-byte F9
Prompt for a byte offset, then go to that position in the current buffer.
678901234567890123456789012345678901234567890 Ctl-X Ctl-N move-window-down Ctl-Z
678901234567890123456789012345678901234567890 Ctl-X Ctl-P move-window-up Esc Z
Move the buffer in the window up or down by one line. This does not effect the cursor until it hits the top or bottom of the window.
678901234567890123456789012345678901234567890 Esc . mark-set F2
Set the mark position to the current cursor position. The mark position is remembered even for nonactive windows and buffers.
678901234567890123456789012345678901234567890 Ctl-X Ctl-X swap-cursor-and-mark
The position of the cursor and the position of the mark are swapped.
678901234567890123456789012345678901234567890 Esc L window-link
This command causes all windows that are displaying the contents of the current buffer to have the same cursor position. Thus if one window is scrolled then all other windows that display that buffer are scrolled so as to keep the cursor in the window.
678901234567890123456789012345678901234567890 Ctl-X = show-position
The current position of the cursor and the mark are displayed. The buffer size, file size and file name are also shown.